import { axios } from '~/plugins/axios';

// 新增项目
export const addProject = (params: any) => axios({
  method: 'post',
  url: '/project/insert',
  data: {
    ...params,
  },
}) as Promise<any>;

// 编辑项目
export const editProject = (params: any) => axios({
  method: 'post',
  url: '/project/update',
  data: {
    ...params,
  },
}) as Promise<any>;


// 根据项目id  查询详情 --不做权限公开校验
export const getProject = (params: any) => axios({
  method: 'get',
  url: `/project/edit/${params as string}`,

}) as Promise<any>;
